package com.example;

import com.example.spring.config.InstantiationProcessProperties;
import com.example.spring.proxy.OpenapiScan;
import com.example.spring.scan.BeforeInstantiation;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@OpenapiScan(basePackages = "com.example.spring.scan")
public class EduSpringBeanApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(EduSpringBeanApplication.class, args);
        BeforeInstantiation bean = run.getBean(BeforeInstantiation.class);
        System.out.println(bean);
        InstantiationProcessProperties bean1 = run.getBean(InstantiationProcessProperties.class);
        System.out.println(bean1);
    }
}
